]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dbusServices/screensaver: Disable auto-shutdown
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 27 Apr 2021 19:07:05 +0000 (21:07 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 28 Apr 2021 18:12:13 +0000 (18:12 +0000)
For the screensaver service, it is quite normal that a consumer only
subscribes to the "ActiveChanged" signal without calling any methods.

The result is that we don't know about the consumer, and shut down
the service anyway after we hit the timeout.

If this happens, we break functionality like gnome-settings-daemon's
screen blanking on idle.

Fix this by simply disabling auto-shutdown for the service, which
also reflects the expectation that the screen saver service is
always running in a GNOME session.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4114

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1824>

js/dbusServices/screensaver/screenSaverService.js

index 571e64e50ec2d02bf350cf352f14ce1e5a79f165..bd3687ef60071915d735355063bf76438168690a 100644 (file)
@@ -13,6 +13,8 @@ var ScreenSaverService = class extends ServiceImplementation {
     constructor() {
         super(ScreenSaverIface, '/org/gnome/ScreenSaver');
 
+        this._autoShutdown = false;
+
         this._proxy = new ScreenSaverProxy(Gio.DBus.session,
             'org.gnome.Shell.ScreenShield',
             '/org/gnome/ScreenSaver',